<template>
  <div>
    <tr>
      <td>
        <input
          type="number"
          :value="item.count"
          @input="$emit('change', $event.target.value)"
        />
      </td>
      <td>{{ item.goodsName }}</td>
      <td>{{ item.count ? "" : "卖光了！！！" }}</td>
    </tr>
  </div>
</template>

<script>
export default {
  props: {
    item: {
      type: Object,
    },
  },
};
</script>

<style></style>
